package com.ohuang.hilt

import android.util.Log
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ohuang.base.AuthInterceptorOkHttpClient
import com.ohuang.base.User
import dagger.hilt.android.lifecycle.HiltViewModel
import okhttp3.OkHttpClient
import javax.inject.Inject

@HiltViewModel
class MainViewModel @Inject constructor(val savedStateHandle: SavedStateHandle):ViewModel() {


    @Inject
    @AuthInterceptorOkHttpClient
    lateinit var  okHttpClient:OkHttpClient
    val TAG="MainViewModel"
    @Inject
    lateinit var user: User

  fun init(){
      Log.d(TAG, " okhttp"+okHttpClient)
      Log.d(TAG, "onCreate: "+user)
  }


}